<h2>用户注册</h2>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
  <%= devise_error_messages! %>

  <div class="field">
    <%= f.label :邮箱 %><br />
    <%= f.email_field :email, autofocus: false %>
  </div>

  <div class="field">
    <%= f.label :密码 %>
    <% if @validatable %>
    <em>(不少于<%= @minimum_password_length %> 字母或数字混合)</em>
    <% end %><br />
    <%= f.password_field :password, autocomplete: "off" %>
  </div>

  <div class="field">
    <%= f.label :重复密码 %><br />
    <%= f.password_field :password_confirmation, autocomplete: "off" %>
  </div>

  <div class="actions">
    <%= f.submit "注册" %>
  </div>
<% end %>

<%= render "devise/shared/links" %>
